﻿@{
    ViewBag.Title = "积分设置";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutCMS.cshtml";
} 
@model LY.Entity.U_ScoreSetting 
<link href="~/Content/assets/css/Layout/css/main.css" rel="stylesheet" />
 
<div class="container">
    <div id="forms" class="mt10">
        <div class="box">
            <div class="box_border">
                <div class="box_top"><b class="pl15">积分设置</b></div>
                <div class="box_center"> 
                    @using (Ajax.BeginForm("ScoreSettingEdit", new AjaxOptions() { OnSuccess = "OnSuccess" }))
                    {  
                        <div class="additem">
                            <input type="hidden" id="Id" name="Id" value="@Model.Id"/> 
                            <dl>
                                <dt><span style="color: red">*</span>&nbsp;积分规则：</dt>
                                <dd>
                                    @Html.TextBoxFor(model=>model.Name,null,new{@class="input normal",datatype="*"}) 
                                   
                                </dd>
                            </dl>
                             <dl>
                                <dt><span style="color: red">*</span>&nbsp;积分比例：</dt>
                                <dd>
                                    @Html.TextBoxFor(model=>model.extcredits3,null,new{@class="input normal",@value=1,datatype="*" }) 
                                     <div class="tip_top">
                                        <ul>
                                            <li>获得积分=积分比例*积分值*积分</li>
                                          
                                        </ul>
                                    </div>
                                </dd>
                            </dl> 
                            <dl>
                                <dt><span style="color: red">*</span>&nbsp;获得积分值：</dt>
                                <dd>
                                        @Html.TextBoxFor(model=>model.extcredits1,null,new{@class="input normal",datatype="int" }) 
                                </dd>
                            </dl> 
                              <dl>
                                <dt><span style="color: red">*</span>&nbsp;类型：</dt>
                                <dd>
                                    <div class="rule-multi-radio">  
                                          @Html.RadioButton("extcredits2", "0", new { @id = "radio1", @name = "extcredits1" })  
                                              <label for="extcredits1">获取</label>
                                          @Html.RadioButton("extcredits2",  "1", new { @id = "radio2", @name = "extcredits1" })  
                                            <label for="extcredits1">消费</label>
                                       </div>  
                                </dd>
                              </dl> 
                            
                        </div>  
                        <input id="btnSave" type="submit" name="button" class="btn btn82 btn_save2" value="提交" />
                        <input id="btnReturn" type="button" name="button" class="btn btn82 btn_res" value="返回" />                 
                    }
                </div>
            </div>
        </div>
    </div>
</div> 
      <script type="text/javascript">  
          //验证初始化 
          $(function () { 
              $("form").Validform({
                  tiptype: 3
              });
              $("#btnReturn").click(function(e) {
                  window.location.href = "@Url.Action("ScoreSettingList")";
              });
          });
          
        
      </script>
 